package pers.xuehongyan.useat.server.enity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Timestamp;

/**
 * @author xuehongyan
 */
@Data
@TableName("ticket")
public class Ticket {
    @TableId(value = "id", type = IdType.AUTO)
    Integer id;

    @TableField("user_id")
    Integer userId;

    @TableField("seat_id")
    Integer seatId;

    @TableField("start")
    Timestamp start;

    @TableField("end")
    Timestamp end;

    @TableField("price")
    Integer price;

    @TableField("discount")
    Integer discount;
}
